package pl.edu.agh.gronoMining.owlToGraphConverter.graph;

public class Vertex {

	private int number;
	private int label;
	private int type;
	private String text;
	
	public Vertex(int number, int type, int label, String text) {
		this.number = number;
		this.type = type;
		this.label = label;
		this.text = text;
	}
	
	public int getNumber() {
		return number;
	}
	
	public int getType() {
		return type;
	}
	
	public int getLabel() {
		return label;
	}
	
	public boolean equals(Object o) {
		Vertex v = (Vertex) o;
		if (v.getNumber() == number)
			return true;
		else
			return false;
	}
	
	public int hashCode() {
		return (new Integer(number)).hashCode();
	}
	
	public String toString() {
		return text;
	}
}
